package com.sshop.core.bean.product;

import java.io.Serializable;
import java.util.Date;


/**
 * 商品
 *
 * @author ljm
 * @Date [2017-3-28 下午04:38:53]
 */
public class Product implements Serializable {
    /**
     * 序列化ID
     */
    private static final long serialVersionUID = 1L;
    /**
     * 前台每页数
     */
    public static final int FRONT_PAGE_SIZE = 8;

    private Integer id;
    private String no;
    private String name;
    private Double weight;
    private Integer isNew = 0;
    private Integer isHot = 0;
    private Integer isCommend = 0;
    private Date createTime;
    private String createUserId;
    private Date checkTime;
    private String checkUserId;
    private Integer isShow = 0;
    private Integer isDel = 1;
    private Integer typeId;
    private Integer brandId;
    private String keywords;
    private Integer sales;
    private String description;
    private String packageList;
    private String feature;
    private String color;//9,10,11,12
    private String size;//S,L,XXL
    //添加外部对象
    private Img img;
    private Integer minPrice;//最低价格

    public Img getImg() {
        return img;
    }

    public void setImg(Img img) {
        this.img = img;
    }

    public Integer getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Integer getIsNew() {
        return isNew;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public Integer getIsCommend() {
        return isCommend;
    }

    public void setIsCommend(Integer isCommend) {
        this.isCommend = isCommend;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public String getCheckUserId() {
        return checkUserId;
    }

    public void setCheckUserId(String checkUserId) {
        this.checkUserId = checkUserId;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPackageList() {
        return packageList;
    }

    public void setPackageList(String packageList) {
        this.packageList = packageList;
    }

    public String getFeature() {
        return feature;
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String toString() {
        return "Product [id=" + id + ",no=" + no + ",name=" + name + ",weight=" + weight + ",isNew=" + isNew + ",isHot=" + isHot + ",isCommend=" + isCommend + ",createTime=" + createTime + ",createUserId=" + createUserId + ",checkTime=" + checkTime + ",checkUserId=" + checkUserId + ",isShow=" + isShow + ",isDel=" + isDel + ",typeId=" + typeId + ",brandId=" + brandId + ",keywords=" + keywords + ",sales=" + sales + ",description=" + description + ",packageList=" + packageList + ",feature=" + feature + ",color=" + color + ",size=" + size + "]";
    }
}
